{% extends 'layout.html' %}
{% block content %}
  <table class="table">
      <caption>查看</caption>
      <thead>
            <tr>
                <th>编号</th>
                <th>位置</th>
                <th>图片</th>
{#                <th>编辑</th>#}
            </tr>
            </thead>
            <tbody>
            <tr>
                {% for filed in res %}
                    <th>{{ filed.property_number }}</th>
                    <th>{{ filed.Location }}</th>
                    <th><a href={{ filed.picture }}><span class="label label-success" aria-hidden="true">查看图片</span></a></th>
                    <th>
                        <a href="/edits/{{ filed.id }}" class="btn btn-info btn-xs">编辑</a>
                        <a href="/del/?nid={{ filed.id }}" class="btn btn-danger btn-xs">删除</a>
                    </th>
                    </tr>

{#                        <th><a href="/edit/{{ filed.id }}" class="btn btn-warning btn-xs">编辑</a>#}

                    </tbody>
                {% endfor %}
        </table>
{% endblock %}
